package com.cloudcc.cloudframe.ui.viewgroup;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

public class CustomViewpager extends LazyViewPager {
	public boolean hasSetTouchMode = false;
//如果需要华东 可以使用nocscrollviewpager磊重新写
	public CustomViewpager(Context context) {
		super(context);
	}

	public CustomViewpager(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	public boolean onInterceptTouchEvent(MotionEvent ev) {
//		if (hasSetTouchMode)
//			return super.onInterceptTouchEvent(ev);
//		else
			return false;
	}

	@Override
	public boolean onTouchEvent(MotionEvent ev) {
//		if (hasSetTouchMode)
//			return super.onTouchEvent(ev);
//		else
			return false;//控制华东
	}
	public void setTouch(boolean isTouch){
		hasSetTouchMode = isTouch;
	}
}
